/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package music;

import java.awt.Graphics;
import java.util.Vector;
import music.global.CharacterMap;
import music.types.ClefType;
import music.types.NoteTypes;

/**
 *
 * @author TJ
 */
public class Rest extends AbstractNote{
    
    public Rest(NoteTypes s){super(s);}
    public Rest(NoteTypes s,Measure m){super(s);setMeasure(m);}
    @Override
    public boolean isRest(){return true;}

    public int getWidth(SpacingOptions s){return CharacterMap.getWidth(getType().getRest(), s.getRenderFont());} 
    @Override
    public void renderNote(Graphics g, SpacingOptions s, int x,ClefType c) {
        getType().renderRest(g,getMeasure().getStaff().getBottomLine(),s, x);
    }

}
